/**
 * 
 */
package hwchai.oom.entity;

/**
 * @author Administrator
 *
 */
final public class Result {
	
	private Object extra;
	private ResultCode code;
	
	public Result(ResultCode code){
		this.code = code;
	}
	
	public Result(ResultCode code, Object extra){
		this.extra = extra;
		this.code = code;
	}
	
	public Object getExtra(){
		return extra;
	}
	
	public ResultCode getResultCode(){
		return code;
	}
	
	public enum ResultCode{
		OK,
		Id_No_Exists,
		Wrong_Password,
		Invalid_User,
		Invalid_Customer,
		Invalid_Account,
		Invalid_Dest_Account,
		Balance_No_Enough,
		Error_Argument
	}
}
